package com.scenic.rd_android;

import android.app.Activity;
import android.support.test.rule.ActivityTestRule;

import com.nova.scenic.projectlibs.util.debug.MyLog;

import org.junit.runner.Description;

/**
 * Created by scenic on 16/6/4.
 */
public class MyActivityTestRule<T extends Activity>  extends ActivityTestRule{
    public MyActivityTestRule(Class activityClass) {
        super(activityClass);
    }

    public MyActivityTestRule(Class activityClass, boolean initialTouchMode) {
        super(activityClass, initialTouchMode);
    }

    public MyActivityTestRule(Class activityClass, boolean initialTouchMode, boolean launchActivity) {
        super(activityClass, initialTouchMode, launchActivity);
    }

    @Override
    protected void afterActivityFinished() {
        MyLog.i("MyActivityTestRule","afterActivityFinished",-1);
        super.afterActivityFinished();
    }

    @Override
    protected void afterActivityLaunched() {
        super.afterActivityLaunched();
        MyLog.i("MyActivityTestRule","afterActivityLaunched",-1);
    }

    @Override
    protected void beforeActivityLaunched() {
        super.beforeActivityLaunched();
        MyLog.i("MyActivityTestRule","beforeActivityLaunched",-1);
    }

    @Override
    protected boolean shouldRunOnUiThread(Description description) {
        return super.shouldRunOnUiThread(description);
    }



}
